package com.yida.system.api.domain;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson2.annotation.JSONField;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.annotation.Excel.ColumnType;
import com.yida.common.core.annotation.Excel.Type;
import com.yida.common.core.utils.poi.ExcelReplaceHandler;
import com.yida.common.core.web.domain.BaseEntity;

/**
 * @author hmh
 * @date 2023/04/10
 */
public class SysOutsideUser extends BaseEntity {

    /**
     *
     */
    private static final long serialVersionUID = 3589394173395434951L;

    /**
     * 用户ID
     */
    @Excel(name = "用户序号", cellType = ColumnType.NUMERIC, prompt = "用户编号")
    private Long userId;

    /**
     * 用户账号
     */
    @Excel(name = "登录名称")
    private String userName;

    @Excel(name = "用户实名", handler = ExcelReplaceHandler.class, args = {"0"})
    private String realName;

    /**
     * 用户头像
     */
    private String avatar;

    /**
     * 密码
     *
     * 字段过滤
     */
    @JSONField(serialize = false)
    private String password;

    /**
     * 帐号状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /**
     * 最后登录IP
     */
    @Excel(name = "最后登录IP", type = Type.EXPORT)
    private String loginIp;

    /**
     * 最后登录时间
     */
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
    private Date loginDate;

    /**
     * 地区组信息20221205 hmh
     */
    private List<Long> areas;

    /**
     * 街道组信息20230410 hmh
     */
    private List<Long> streets;

    /**
     * 项目组信息20230410 hmh
     */
    private List<Long> community;

    /**
     * 用户类型 00系统用户 01物业、街道办
     */
    @JSONField(serialize = false)
    private String userType;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    private String phonenumber;

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public List<Long> getAreas() {
        return areas;
    }

    public void setAreas(List<Long> areas) {
        this.areas = areas;
    }

    public List<Long> getStreets() {
        return streets;
    }

    public void setStreets(List<Long> streets) {
        this.streets = streets;
    }

    public List<Long> getCommunity() {
        return community;
    }

    public void setCommunity(List<Long> community) {
        this.community = community;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

}
